Changing getFilePathFromArgs after a code review. Adding Safe to dependencies. Extracting function to get parent folder as string