This should probably be PATH_MAX to be safe. Same for the other two.