linux: only set working dir from terminal if it's not the user home path