Remove trailing whitespace from entered paths

Closes atom/atom#3464
Remove redundant existsSync checks

These were always followed by an isDirectorySync or isFileSync
assertion which also verifies it exists.