Move and use ifndef for PATH_MAX