Moved path arguments validation logic to setupPaths