fixed grabbing files from any directory