adjusting for linux/osx flavors of ls