Adding checkes for filepaths greater than MAX_PATH