Create pid directory if it doesn't exist

Add exit code support to ./masctl status