fix running in subdirectory