replace sys.filep with paths.filep

it looks like the filep has been removed from sys. Using paths.filep instead.