Added file path builder and tests

To be used later
Path builder fix
Used file path builder
Added some validation for cmd line argument