Allow resource dir to be specified on the command line