minor bug fixes with files losing the first . if the cwd was .