Remove redundant arguments and replace 'sudoedit' with 'sudo -e' to be Mac-compatible