added 'shopt -s dotglob' to move dot files