Proper sanity checking in PATH creation.