Updated the checkp function. Now ignores symbolic links