minor fixes requird for phonegap - paths cannot contain underscores, apparently!