Test for lib directory, not file when using import.sh