use Sys.glob in getorderedfilelist

use Sys.glob instead of dir in getorderedfilelist, this way matching a .... character can be done because currently it seems that escaping it doesn't work when the argument is passed through multiple functions (probably because of 'paste')