Updated to handle crontab editing properly