Support for old versions of ls