Added directory location code for Linux