Added a more flexible way of pulling commands from .cfg files while main...

"#{fdir}/#{command}.cfg" isn't compatible with multiple commands per file. This will allow the agent to be used in the same manner while also allowing for multiple commands per file in fdir.