Ensure that ~/Library/LaunchAgents exists before trying to write to it.