Updated the method to get the home directory to a more universal, and CLI based, method.
Finished valid directory check and throwing warnings. Also formatting fixes.
Added a test for the new valid path test logic.