in reply to Directory check fails

Single quotes do not interpolate variable values. Try double quotes instead:
if ( -e "$options{data}\\files\\data" ) { #code }