bugfix: always check if shellpath is empty