add new 'app_subdir' variable to correctly handle assets etc. if app is in a subdirectory

Trivial patch to fix #615.  Hopefully you agree with me that this is a zero risk change.