resolve paths for bin and given path arguments 
the right way