Removed the realpath since it was causing errors.